c program to find sum of digits of a 3 digit number